import request from '@/utils/request'

// 查询图片维护列表
export function listMasterImage(query) {
  return request({
    url: '/spspublic/masterImage/list',
    method: 'get',
    params: query
  })
}

// 查询图片维护详细
export function getMasterImage(ctId) {
  return request({
    url: '/spspublic/masterImage/' + ctId,
    method: 'get'
  })
}

// 新增图片维护
export function addMasterImage(data) {
  return request({
    url: '/spspublic/masterImage',
    method: 'post',
    data: data
  })
}

// 修改图片维护
export function updateMasterImage(data) {
  return request({
    url: '/spspublic/masterImage/edit',
    method: 'post',
    data: data
  })
}

// 删除图片维护
export function delMasterImage(ctId) {
  return request({
    url: '/spspublic/masterImage/delete/' + ctId,
    method: 'post'
  })
}

// 导出图片维护
export function exportMasterImage(query) {
  return request({
    url: '/spspublic/masterImage/export',
    method: 'get',
    params: query
  })
}